package day17.zhiyou100;

import org.apache.commons.io.FileUtils;

import java.io.File;

// 文件工具类
public class Demo10_FileUtilsApache {

    public static void m1() throws Exception{
       /* File src = new File("D:\\aa\\dd\\ww\\gg.txt");
        File dest = new File("E:\\dd\\copy.txt");
        FileUtils.copyFile(src,dest);*/
        /*  File dir = new File("D:\\aa");
        //FileUtils.delete(dir);
        FileUtils.deleteDirectory(dir);*/
       /* File file = new File("D:\\72806125724c46b3be6a5265f6043368.txt");
        FileUtils.delete(file);*/
        File src = new File("D:\\aa");
        File dest = new File("E:\\aa");
        FileUtils.copyDirectory(src,dest);



    }

    public static void main(String[] args) throws Exception{
        m1();
    }
}
